package com.monkey.model.user;

import com.monkey.core.ErrorCode;
import com.monkey.generator.model.TUserDraw;

import java.util.ArrayList;
import java.util.List;

/**
 * desc:
 * auth: chenxiaobin
 * data: 2018/2/3.
 */
public class UserDrawData {
    private int code;
    private String msg;
    private int total;
    private List<TUserDraw> list;

    public UserDrawData(int code) {
        this(code, 0, null);
    }

    public UserDrawData(int code, int total, List<TUserDraw> list) {
        this.code = code;
        this.msg = ErrorCode.getMsg(code);
        this.total = total;
        this.list = list;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public int getTotal() {
        return total;
    }

    public List<TUserDraw> getList() {
        return list;
    }
}
